<template>
	<view>{{num1}}</view>
	<view>{{num2}}</view>
	<view>{{test}}</view>
	<view>{{arr+"||选择"+arr[2]}}</view>
	<view>{{obj}}</view>
</template>

<script setup>
	import { ref } from 'vue';
let num1 = 6;
// setInterval(()=>{
// 	num1++;
// 	console.log(num1)
// },1000)

let num2 = ref(10);
let numInter = setInterval(()=>{
	num2.value++;
	console.log(num2.value);
	if (num2.value == 13) {
		clearInterval(numInter);
	}
},1000);

let test = ref("谨念");

let arr = ref([1,2,3]);

let obj = ref({name:'谨念',age:10})
obj.value.name = '谨念互联';
</script>

<style lang="scss">

</style>
